/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.asu.cse360.service.client;

import edu.asu.cse360.model.Employee;
import edu.asu.cse360.model.Restaurant;
import edu.asu.cse360.service.EmployeeService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;


public class ClientEmployeeService implements EmployeeService{

    @Autowired
    private List<Employee> employees;
    
    @Override
    public List<Employee> getEmployees(Restaurant restaurant) {
        return employees;
    }

    @Override
    public Employee save(Employee employee) {
        if(!employees.contains(employee)){
            employees.add(employee);
        }
        return employee;
    }

    @Override
    public void remove(Employee employee) {
        this.employees.remove(employee);
    }

}
